package com.sea.human.service.impl;

import com.sea.human.entity.PerformanceDetail;
import com.sea.human.entity.PerformanceTask;
import com.sea.human.mapper.PerformanceDetailMapper;
import com.sea.human.mapper.PerformanceTaskMapper;
import com.sea.human.service.PerformanceDetailService;
import com.sea.human.service.PerformanceTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author 陈鸿飞
 */
@Service
public class PerformanceTaskServiceImpl implements PerformanceTaskService {

    @Autowired
    private PerformanceTaskMapper performanceTaskMapper;

    @Override
    public List<PerformanceTask> findByCnd(PerformanceTask performanceTask) {
        return performanceTaskMapper.findByCnd(performanceTask);
    }

    @Override
    public int save(PerformanceTask performanceTask) {
        return performanceTaskMapper.insert(performanceTask);
    }

    @Override
    public PerformanceTask findById(Integer id) {
        return performanceTaskMapper.findById(id);
    }

    @Override
    public int usave(PerformanceTask performanceTask) {
        return performanceTaskMapper.update(performanceTask);
    }

    @Override
    public int delete(Integer id) {
        return performanceTaskMapper.delete(id);
    }

    @Override
    public List<PerformanceTask> findByCulture() {
        return performanceTaskMapper.findByCulture();
    }
}
